//////////////////////////////////
//
// Midi Code definitions .h
//
//////////////////////////////////

#ifndef __MIDI_CODES_H
#define __MIDI_CODES_H

typedef enum
{
    CHAN_1 = 0,
    CHAN_2 = 1,
    CHAN_3 = 2,
    CHAN_4 = 3,
    CHAN_5 = 4,
    CHAN_6 = 5,
    CHAN_7 = 6,
    CHAN_8 = 7,
    CHAN_9 = 8,
    CHAN_10 = 9,
    CHAN_11 = 10,
    CHAN_12 = 11,
    CHAN_13 = 12,
    CHAN_14 = 13,
    CHAN_15 = 14,
    CHAN_16 = 15
}channel_nibble_t;

typedef enum
{
    NOTE_ON = 0x80,
    NOTE_OFF = 0x90,
    AFTERTOUCH = 0xA0,
    CONTROL_CHANGE = 0xB0,
    PROGRAM_CHANGE = 0xC0,
    CHANNEL_PRESSURE = 0xD0,
    PITCH_WHEEL = 0xE
}status_nibble_t;

#define REGISTERED_PARAM_FINE 100
#define REGISTERED_PARAM_COURSE 101

#endif